Skip to content

update_versions: change security warning#6904

Merged
AenBleidd merged 1 commit intomasterfrom
dpa_code_sign
Mar 10, 2026
Merged

update_versions: change security warning#6904
AenBleidd merged 1 commit intomasterfrom
dpa_code_sign

Conversation

@davidpanderson
Copy link
Contributor

@davidpanderson davidpanderson commented Mar 8, 2026

update_versions prints an alarming message if it finds the code-signing private key,
based on the assumption that code-signing must be
done on a separate, disconnected machine.
However, this is so inconvenient that few (if any) projects do it.

A more feasible approach is to keep the key encrypted (e.g. using gpg and a passphrase) except when running update_versions. Change the message (and the wiki doc) accordingly.


Summary by cubic

Update the tools/update_versions security notice to recommend encrypting the code-signing key and only decrypting for signing, with a link to the updated Code-signing wiki. Also clarify the sample assimilator comment.

  • Refactors
    • Replace the alarming warning with a clear notice that files will be signed using keys/code_sign_private and to re-encrypt the key after use (link to Code-signing wiki).
    • Tighten comments in sched/sample_dummy_assimilator.cpp to state it only logs and marks WUs as assimilated.

Written for commit ae3133c. Summary will update on new commits.

update_versions prints an alarming message if it finds the
code-signing private key,
based on the assumption that code-signing must be
done on a separate, disconnected machine.
However, this is so inconvenient that few (if any) projects do it.

A more feasible approach is to keep the key encrypted
(e.g. using gpg and a passphrase) except when running update_versions.
Change the message (and the wiki doc) accordingly.
Copilot AI review requested due to automatic review settings March 8, 2026 21:04
Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 2 files

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR softens and updates the security warning shown by update_versions when it auto-generates a code-signing signature using the project's private key. The old message was alarmist (treating the presence of the key on the server as an immediate critical vulnerability requiring project shutdown). The new message instead acknowledges the workflow and recommends encrypting the key when not in use, linking to the updated wiki page. A related comment in sample_dummy_assimilator.cpp is also clarified.

Changes:

  • Updated security notice in tools/update_versions to recommend key encryption instead of demanding project shutdown, and updated the wiki link from wiki/CodeSigning to wiki/Code-signing.
  • Clarified the file-level comment in sched/sample_dummy_assimilator.cpp for readability.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
tools/update_versions Replaces the alarming security warning with a more practical recommendation to encrypt the private key when not in use; updates the wiki URL.
sched/sample_dummy_assimilator.cpp Minor comment rewrite for improved clarity—no logic changes.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +231 to +233
NOTICE: files will be signed with your project's code-signing private key
(keys/code_sign_private).
We recommend that you encrypt it when done; see
Copy link

Copilot AI Mar 8, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The new notice hardcodes the key path as keys/code_sign_private, but the actual key directory is configurable via <key_dir> in config.xml (read into $key_dir at line 48). The real path could be anything, not necessarily keys/. The message should either omit the path, use a generic description, or dynamically include the actual $key_dir value so it accurately reflects the project's configuration.

Suggested change
NOTICE: files will be signed with your project's code-signing private key
(keys/code_sign_private).
We recommend that you encrypt it when done; see
NOTICE: files will be signed with your project's code-signing private key.
We recommend that you encrypt this key when done; see

Copilot uses AI. Check for mistakes.
@AenBleidd AenBleidd added this to Server Mar 10, 2026
@github-project-automation github-project-automation bot moved this to Backlog in Server Mar 10, 2026
@AenBleidd AenBleidd added this to the Server Release 1.6.2 milestone Mar 10, 2026
@AenBleidd AenBleidd merged commit 11c12a0 into master Mar 10, 2026
433 checks passed
@AenBleidd AenBleidd deleted the dpa_code_sign branch March 10, 2026 15:32
@github-project-automation github-project-automation bot moved this from Backlog to Done in Server Mar 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants